﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenTK.Mathematics;

namespace Test.UI.OpenGL.Lights;


/// <summary>
/// 点光源
/// </summary>
public class PointLight : LightBase
{
    public Vector3 Position { get; set; }
    public float Range { get; set; }
    public Vector3 Attenuation { get; set; } // x: constant, y: linear, z: quadratic

    public PointLight()
    {
        Position = Vector3.Zero;
        Range = 10.0f;
        Attenuation = new Vector3(1.0f, 0.09f, 0.032f);
    }
}